import { observable, action } from 'mobx';
import BaseListStore from '../BaseListStore';
import * as Apis from '../../apis/ReportApi';
import { WeaLocaleProvider } from 'ecCom';

const getLabel = WeaLocaleProvider.getLabel;

class CustomerReportStore extends BaseListStore {
  @observable dialog = { title: getLabel(20323, '客户信息'), visible: false, url: '', style: { width: 1000, height: 600 } };

  @action
  showCustomersDialog=(url) => {
    this.dialog.visible = true;
    this.dialog.url = url;
  }
  @action
  hideCustomersDialog=() => {
    this.dialog.visible = false;
  }
  getTableData(requestParams, callBackFn) {
    Apis.getTableList(this.routerParams, requestParams).then((data) => {
      callBackFn(data);
    });
  }
}

export default CustomerReportStore;
